make text bold python

32

bold text variable in python -

bolded_string = "\033[1m" + a_string + "\033[0m"

make text bold python -

class color:
   BOLD = '\033[1m'
   END = '\033[0m'

print(color.BOLD + 'Hello World !' + color.END)

how to bold in colorama -

from simple_colors import *
print(green('hello', 'bold'))

Comments

Submit
0 Comments